<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'users')) ?>
<?php $this->end(); ?>

<div class="users form">
<?php echo $this->Form->create('User'); ?>
	<h2><?php echo __('Users Management - Add User'); ?></h2>
	<?php 
		echo $this->Session->flash(); 
		echo $this->Session->flash('good');
		echo $this->Session->flash('bad');
	?>
	<table class="form-table">
		<tr>
			<td class='l-style'><?php echo __('Email') ?><span class='star-rq'> * </span></td>
			<td class="r-style width_middle"><?php echo $this->Form->input('email', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('Password') ?><span class='star-rq'> * </span></td>
			<td class="r-style width_middle	"><?php echo $this->Form->input('password', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('Confirm Password') ?></td>
			<td class="r-style width_middle"><?php echo $this->Form->input('passwd_confirm', array('label' => false, 'type' => 'password'));?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('First name') ?><span class='star-rq'> * </span></td>
			<td class="r-style width_middle"><?php echo $this->Form->input('Profile.first_name', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('Last name') ?><span class='star-rq'> * </span></td>
			<td class="r-style width_middle"><?php echo $this->Form->input('Profile.last_name', array('label' => false));?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('Status') ?></td>
			<td class="r-style width_min"><?php echo $this->Form->input('status', array('label' => false, 'options' => $status)); ?></td>
		</tr>
		<tr>
			<td class='l-style'><?php echo __('Role') ?></td>
			<td class="r-style width_min"><?php echo $this->Form->input('role_id', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='l-style no-border no-background'>
				(<span class='red-star'>*</span>) <?php echo __('Required') ?>
			</td>
			<td class='r-style actions no-border no-background'><?php echo $this->Form->end(__('Submit')); ?></td>
		</tr>
	</table>
</div>
<div class='actionct'>
	<span class='btn-act'><span><?php echo $this->Html->link(__('Cancel'), array('action' => 'index'), array('class' => 'back-act')); ?></span></span>
</div>

